package sza.oracle.apps.ap.oie.traveExp.server;

import oracle.apps.fnd.framework.server.OADBTransaction;
import oracle.apps.fnd.framework.server.OAEntityDefImpl;
import oracle.apps.fnd.framework.server.OAEntityImpl;

import oracle.jbo.AttributeList;
import oracle.jbo.domain.Date;
import oracle.jbo.domain.Number;
import oracle.jbo.domain.RowID;
import oracle.jbo.server.AttributeDefImpl;
import oracle.jbo.server.EntityDefImpl;
// ---------------------------------------------------------------------
// ---    File generated by Oracle ADF Business Components Design Time.
// ---    Custom code may be added to this class.
// ---    Warning: Do not modify method signatures of generated methods.
// ---------------------------------------------------------------------
public class SzaOieCityImpl extends OAEntityImpl {
    public static final int CITYCATEGORY = 0;
    public static final int CITYID = 1;
    public static final int CITYNAME = 2;
    public static final int CITYSORT = 3;
    public static final int PRONAME = 4;
    public static final int ROWID = 5;
    private static OAEntityDefImpl mDefinitionObject;

    /**This is the default constructor (do not remove)
     */
    public SzaOieCityImpl() {
    }

    /**Retrieves the definition object for this instance class.
     */
    public static synchronized EntityDefImpl getDefinitionObject() {
        if (mDefinitionObject == null) {
            mDefinitionObject = 
                    (OAEntityDefImpl)EntityDefImpl.findDefObject("sza.oracle.apps.ap.oie.traveExp.server.SzaOieCity");
        }
        return mDefinitionObject;
    }

    /**Add attribute defaulting logic in this method.
     */
    public void create(AttributeList attributeList) {
        super.create(attributeList);
        OADBTransaction transaction = getOADBTransaction();
        Number seqId = transaction.getSequenceValue("SZA.SZA_OIE_CITYS_S");
        this.setCityid(seqId);
    }

    /**Add entity remove logic in this method.
     */
    public void remove() {
        super.remove();
    }

    /**Add Entity validation code in this method.
     */
    protected void validateEntity() {
        super.validateEntity();
    }

    /**Gets the attribute value for Citycategory, using the alias name Citycategory
     */
    public String getCitycategory() {
        return (String)getAttributeInternal(CITYCATEGORY);
    }

    /**Sets <code>value</code> as the attribute value for Citycategory
     */
    public void setCitycategory(String value) {
        setAttributeInternal(CITYCATEGORY, value);
    }

    /**Gets the attribute value for Cityid, using the alias name Cityid
     */
    public Number getCityid() {
        return (Number)getAttributeInternal(CITYID);
    }

    /**Sets <code>value</code> as the attribute value for Cityid
     */
    public void setCityid(Number value) {
        setAttributeInternal(CITYID, value);
    }

    /**Gets the attribute value for Cityname, using the alias name Cityname
     */
    public String getCityname() {
        return (String)getAttributeInternal(CITYNAME);
    }

    /**Sets <code>value</code> as the attribute value for Cityname
     */
    public void setCityname(String value) {
        setAttributeInternal(CITYNAME, value);
    }

    /**Gets the attribute value for Citysort, using the alias name Citysort
     */
    public Number getCitysort() {
        return (Number)getAttributeInternal(CITYSORT);
    }

    /**Sets <code>value</code> as the attribute value for Citysort
     */
    public void setCitysort(Number value) {
        setAttributeInternal(CITYSORT, value);
    }

    /**Gets the attribute value for Proname, using the alias name Proname
     */
    public String getProname() {
        return (String)getAttributeInternal(PRONAME);
    }

    /**Sets <code>value</code> as the attribute value for Proname
     */
    public void setProname(String value) {
        setAttributeInternal(PRONAME, value);
    }

    /**Gets the attribute value for RowID, using the alias name RowID
     */
    public RowID getRowID() {
        return (RowID)getAttributeInternal(ROWID);
    }

    /**getAttrInvokeAccessor: generated method. Do not modify.
     */
    protected Object getAttrInvokeAccessor(int index, 
                                           AttributeDefImpl attrDef) throws Exception {
        switch (index) {
        case CITYCATEGORY:
            return getCitycategory();
        case CITYID:
            return getCityid();
        case CITYNAME:
            return getCityname();
        case CITYSORT:
            return getCitysort();
        case PRONAME:
            return getProname();
        case ROWID:
            return getRowID();
        default:
            return super.getAttrInvokeAccessor(index, attrDef);
        }
    }

    /**setAttrInvokeAccessor: generated method. Do not modify.
     */
    protected void setAttrInvokeAccessor(int index, Object value, 
                                         AttributeDefImpl attrDef) throws Exception {
        switch (index) {
        case CITYCATEGORY:
            setCitycategory((String)value);
            return;
        case CITYID:
            setCityid((Number)value);
            return;
        case CITYNAME:
            setCityname((String)value);
            return;
        case CITYSORT:
            setCitysort((Number)value);
            return;
        case PRONAME:
            setProname((String)value);
            return;
        default:
            super.setAttrInvokeAccessor(index, value, attrDef);
            return;
        }
    }

    public void setCreationDate(Date date) {
    }

    public void setCreatedBy(Number number) {
    }

    public void setLastUpdateDate(Date date) {
    }

    public void setLastUpdatedBy(Number number) {
    }

    public void setLastUpdateLogin(Number number) {
    }
}
